package com.suli.multimedia.mapper;

import com.suli.multimedia.entity.Scenic;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author SuLi
 * @since 2022-03-29
 */
@Mapper
public interface ScenicMapper extends BaseMapper<Scenic> {

    //获取逻辑删除的景点数量
    Integer getCount();//
    //分页获取被删除的景点
    List<Scenic> getScenicDeleted(@Param("page") Long page,@Param("limit") Long limit);
    //还原被逻辑删除的景点
    int recoverScenicDeleted(List<String>  list);
    //批量还原图片
    int recoveryImage(List<String>  list);
    //批量删除景点
    int deleteScenicDeleted(List<String>  list);
    //根据景点id获取图片用于删除
    List<String> getImageUrl(String id);
    //批量删除图片
    int deleteImageDeleted(List<String>  list);
}
